<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>固定导航条</title>
    <style>
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 60px;
            background-color: gray;
            border: 1px solid black;
            color: white;
            display: flex;
            align-items: center;
            padding: 0 20px;
        }
        .content{
            margin-top: 60px;
        }
        .content img {
            border: 1px solid black;
        }
    </style>
</head>

<body>
    <div class="navbar">
        <h1>你好</h1>
    </div>

    <div class="content">
        <img src="https://img.haruka.net.cn/image/2024/10/21/vsgga.jpg" alt="">
        <img src="https://img.haruka.net.cn/image/2024/10/21/vslfv.jpg" alt="">
        <img src="https://img.haruka.net.cn/image/2024/10/21/vsqgx.jpg" alt="">
        <img src="https://img.haruka.net.cn/image/2024/10/21/vsl7u.jpg" alt="">
        <img src="https://img.haruka.net.cn/image/2024/10/21/vskl8.jpg" alt="">
        <img src="https://img.haruka.net.cn/image/2024/10/21/vsynv.jpg" alt="">
        <img src="https://img.haruka.net.cn/image/2024/10/21/vsw8w.jpg" alt="">
        <img src="https://img.haruka.net.cn/image/2024/10/21/vswbw.jpg" alt="">
    </div>
</body>

</html>